home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 050a.dms / 050a.adf / TEXTS / chapter14.txt < prev    next >
Text File  |  1992-02-26  |  5KB  |  139 lines

  1.                      The Absolute Beginners Guide To Amos
  2.                     -------------------------------------
  3.                                Chapter fourteen
  4.                                ----------------
  5.  
  6. And now a brief word about the SAY command. This command uses the 
  7. Narrator.Device, which can be found in the DEVS drawer on your Amos
  8. system disk or your Workbench disk.  For the SAY command to work you must
  9. have the Narrator.Device on the currently used disk as Amos will 
  10. automatically attempt to load it before use of the command.
  11.  
  12. The say command makes your Amiga speak to you in a synthetic voice and can
  13. be very useful in some programs, Educational games for example, where the
  14. Amiga could talk back to the child. Here is the syntax:
  15.  
  16. SAY "TEXT"
  17.  
  18. It`s very simple isn`t it? Just type what you want the Amiga to SAY to you 
  19. inside quotes, just like the PRINT command.  Load EXAMPLE14.Amos for an
  20. ample demonstration.
  21.  
  22. As you will realize the quality of the speech can be a bit er... let us say
  23. rubbish.  If SAY is having problems with a particular word then try changing
  24. the spelling of it, e.g. AMIGA to AMEEGAR.
  25.  
  26. There are in fact two speech modes for the SAY command, as default your Amos
  27. program will stop while the SAY command does it`s thing but you can set 
  28. multitasking on  by putting a 1 after your command. This will let your
  29. program continue executing the commands after the SAY command but will 
  30. slow your program down a little. An example:
  31.  
  32. SAY "A LOAD OF RHUBARB",1
  33.  
  34. The 1 is the multitasking toggle. To return to normal change this to 0.
  35. Don`t forget the text can be a string variable if you need or want it to be.
  36. Like this:
  37.  
  38.  
  39. T$="WIBBLEWOBBLE"
  40. SAY T$
  41.  
  42. YAP$="I LOVE LOLLIPOP LAND"
  43. SAY YAP$,1
  44.  
  45. You can make some other system changes to the SAY command as follows:
  46.  
  47. SET TALK sex,mode,pitch,rate
  48.  
  49. SEX
  50. ---
  51. (No puns here please!)
  52. The SEX mode let`s you change between 0 male or 1 female voice, which by the
  53. way does not work very well, you will be better off changing the PITCH value.
  54.  
  55. Mode
  56. ----
  57. Default is 0.  If set to 1 then adds a strange rhythmic pattern to the voice
  58. according to the manual?
  59.  
  60. PITCH
  61. -----
  62. Changes the frequency of the voice from 65 (low) to 320 (incredibly high)
  63.  
  64. RATE
  65. ----
  66. Specifies the speed of the talking in words per minute ranging from 40-400.
  67.  
  68. quite a bit of fun can be had with this command and if the result was a bit
  69. more realistic it could of been very useful. Personally I think the SAY 
  70. command is just a novelty. Commodore must agree as they have now dropped it 
  71. from the Workbench disks. If you wanted to reproduce realistic speech a much
  72. better option would be to use real life samples, nice cue that.
  73.  
  74.  
  75. SAMPLES:
  76. =======
  77. The easiest way to get samples into Amos and play them is to use the 
  78. Amos Sample_Bank_maker provided on the Amos programs disk. This will convert
  79. your samples into an Amos memory bank file (ABK) which you can load into bank
  80. five, the default sample bank.   
  81. You can then load your sample bank into your program like this:
  82.  
  83. Use direct mode (Press Escape) then type in
  84.  
  85. LOAD "SAMPLES.ABK"
  86.  
  87. And your samples will be in memory ready for use.
  88.  
  89. Really there are only three commands you need to use for playing samples 
  90. which are as follows,
  91.  
  92.  
  93. SAM BANK bank number
  94.  
  95. SAM LOOP on/off
  96.  
  97. and
  98.  
  99. SAM PLAY sample number  
  100.  
  101.  
  102. SAM BANK
  103. -------
  104. Tells Amos which bank to play your samples from. This could be useful if for
  105. example you wanted more than one set of samples in memory at a time. At this
  106. stage we are sticking to one set of samples from the default bank so we
  107. won't have any need for SAM BANK, but I thought you ought to know.
  108.  
  109. SAM LOOP
  110. -------
  111. Is just like TRACK LOOP ON or TRACK LOOP OFF, remember that one? SAM LOOP
  112. does actually work properly though, which is nice.
  113. SAM LOOP will continuously play the last played sample forever or until Amos
  114. reaches a SAM LOOP OFF.
  115.  
  116. SAM PLAY 
  117. -------
  118. This actually plays the sample requested from bank five.  You can store as
  119. many samples as you want in a bank, memory permitting.
  120.  
  121. There are a few other commands but we don`t need to look at them at this
  122. stage.
  123.  
  124. load EXAMPLE14_1.Amos and mess around with that for a while.
  125.  
  126. The trade off against using sound samples and using the SAY command is of
  127. course memory. Samples of any size will be a lot bigger than the memory used
  128. by SAY, but the quality of most samples are almost life-like.
  129.  
  130. There are huge amounts of disks full of samples in the Public Domain, or you
  131. can create your own. All you need is a Sampler and a sound source such as a
  132. CD, HI-FI, Walkman or Tape deck.
  133.  
  134. Proper use of sampled sound effects game bring a game to life, so this is an
  135. area well worth investigating if you intend to write even half decent games.
  136.  
  137.                            End of chapter fourteen
  138.                            ^^^^^^^^^^^^^^^^^^^^^^^
  139.